/*
 * @Author: 张小平
 * @Date:   2025-05-01 
 * @Email:  qqshuqian@163.com 
 * @Copyright © 2024 aseyun. All rights reserved.
 */
import website  from '@/framework-core/config/website';
export const tableOption = {
  "border": true,
  "index": true,
  "indexLabel": "#",
  "stripe": true,
  "menuAlign": "center",
  "align": "center",
  "searchMenuSpan": 6,
  grid: window.isMobile,
  gridSpan: 24,
  editBtn:false,
  saveBtn: false,
  addBtn: true,
  delBtn:true,
  searchEnter:true,
  "column": [
    {
      hide: true,
      label: '附件上传',
      prop: 'imgUrl',
      type: 'upload',
      loadText: '附件上传中，请稍等',
      span: 24,
      listType: 'picture-card',
      limit: 1,
      propsHttp: {
        url: 'url',
        name: 'name',
        res: 'data.data'
      },
      tip: '上传同步至文件服务器',
      action:  website.baseUrl+"/api/sys/file/upload"
    },



    {
      hide: true,
      type: 'input',
      label: 'ID',
      prop: 'id',
      overHidden:true,
      addDisplay: false,
    },
	  {
      "type": "input",
      "label": "空间",
      "prop": "bucketName",
      overHidden:true,
      addDisplay: false,
      "span": 12
    },
    {
      "type": "input",
      "label": "文件名",
      "prop": "fileName",
      "span": 12,
      overHidden:true,
      sortable:true,
      search: true,
      addDisplay: false
    },
    {
      "type": "input",
      "label": "原始名",
      sortable:true,
      "prop": "original",
      "span": 12,
      overHidden:true,
      addDisplay: false,
    },
    {
      label: "图片",
      prop: "url",
      listType: 'picture-img',
      type:"upload",
      addDisplay: false,
      editDisplay: false
    },
    {
      "type": "input",
      "label": "类型",
      "prop": "type",
      "span": 12,
      overHidden:true,
      addDisplay: false,
    },
    {
      "type": "input",
      "label": "用途",
      "prop": "used",
      "span": 12,
      sortable:"custom",
      search: true,
      overHidden:true,
      addDisplay: false,
    },
    {
      "type": "input",
      "label": "标识",
      "prop": "tag",
      "span": 12,
      sortable:"custom",
      overHidden:true,
      addDisplay: false,
      search: true,
    },
    {
      "type": "input",
      "label": "文件大小",
      "prop": "fileSize",
      "span": 12,
      sortable:"custom",
      overHidden:true,
      addDisplay: false,
    },
    {
      width: 180,
      label: '上传时间',
      prop: 'createTime',
      type: 'datetime',
      format: 'YYYY-MM-DD HH:mm',
      editDisabled: true,
      addDisplay: false,
      span: 24,
    }
    ]
}
